import { default } from '../.nuxt/components/nuxt-build-indicator.vue';
<template>
  <svg :class="svgClass" aria-hidden="true">
    <use :xlink:href="iconName" :fill="color" />
  </svg>
</template>
<script>
import { computed } from "vue"
export default {
  props: {
    iconClass: { required: true, type: String },
    className: { default: '', type: String },
    color: { default: '#000000', type: String }
  },
  computed: {
    iconName() {
      return `#icon-${this.iconClass}`
    },
    svgClass() {
      return this.className ? 'svg-icon ' + this.className : 'svg-icon'
    }
  }
}
</script>
